package ruifeng.zcj.dig.base;

import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

import butterknife.Bind;
import butterknife.OnClick;
import ruifeng.zcj.dig.R;
import ruifeng.zcj.mybase.base.App;
import ruifeng.zcj.mybase.base.BaseFragment;

/**
 * Created by Administrator on 2016/9/2 0002.
 */
public abstract class BaseBarFragment extends BaseFragment{
    @Bind(R.id.activity_top_right)
    ImageView mActivityTopRight;
    @Bind(R.id.activity_top_left)
    ImageView mActivityTopLeft;


    @Override
    protected void initFragmentConfig(View view) {
        if (mActivityTopLeft == null){
            mActivityTopLeft = (ImageView) view.findViewById(R.id.activity_top_left);
        }
        if (mActivityTopRight == null){
            mActivityTopRight = (ImageView) view.findViewById(R.id.activity_top_right);
        }
        if (mActivityTopLeft != null && mActivityTopRight != null ){
            mActivityTopLeft.setVisibility(View.INVISIBLE);
            mActivityTopRight.setImageResource(R.drawable.personal_h);
        }
    }

    @OnClick({})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.activity_top_right:
                Toast.makeText(App.getAppContext(),"我被点级了",Toast.LENGTH_SHORT).show();
                break;
        }
    }

}
